package study.jy.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import study.jy.common.Result;
import study.jy.common.enums.ResultCodeEnum;
import study.jy.exception.CustomException;

@RestController
@RequestMapping("/test")
public class TestController {

    @GetMapping("/hello")
    public Result hello() {
        throw new CustomException(ResultCodeEnum.PARAM_ERROR);
        //return Result.success("hello");
    }
}
